Dynomotion

Group: DynoMotion Message: 7899 From: troncam Date: 7/10/2013
Subject: Mach 3 and Spindle Program??
Hello
I'm the one working on the water cutting table.
I have a water cutting table with DC brushless motors and encoders with a KFlop controller.
We are trying to change it over to Mach 3 but we would like to keep the KMotionCNC also.
I got the homing program working and all the "Ref" buttons work just fine.
Now I'm working on the spindle program.
So I put in the KFlop plugin the generic "spindleMach3.c" program and was going to look at the output on the console window.
But every time I click the "Spindle CW F5" button I get information in the console window but all axis jerks and the X axis goes off line and the only way to get it back is to reset the KFlop board.
This is the output in the console window after that.

(Init Servo)
(Init Servo)
Mach3 Notify Message=5, Direction= 0, Spindle Set to 0.000000
Spindle Speed Set to 0.000000
Mach3 Notify Message=3, Direction= 1, Spindle Set to 0.000000
Spindle CCW ON

So I totally don't understand what is going on!
All the code is to do is print out information I don't get why it is init the servo two times or what is going on.
Any ideas?

Troncam
Group: DynoMotion Message: 7900 From: Tom Kerekes Date: 7/10/2013
Subject: Re: Mach 3 and Spindle Program??
Hi Troncam,

I don't know.  Sounds like you have the wrong file selected or the file has been modified.  If you send your Mach3 XML file and the Spindle File we can check it.

Regards
TK

Group: DynoMotion Message: 7904 From: troncam Date: 7/10/2013
Subject: Re: Mach 3 and Spindle Program??
Thanks TK
But I don't have access to the files right now.
So I will send them first thing in the morning.
Also I have been looking at replying to your post and I don't see any way to attach the files to the reply.
Did I miss something?
The only way that I see is to upload the files to a folder in the file section.
Is this correct?
Troncam


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Troncam,
>
> I don't know.  Sounds like you have the wrong file selected or the file has been modified.  If you send your Mach3 XML file and the Spindle File we can check it.
>
> Regards
> TK
>
>
> ________________________________
> From: troncam <troncam@...>
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, July 10, 2013 12:45 PM
> Subject: [DynoMotion] Mach 3 and Spindle Program??
>
>
>
>  
> Hello
> I'm the one working on the water cutting table.
> I have a water cutting table with DC brushless motors and encoders with a KFlop controller.
> We are trying to change it over to Mach 3 but we would like to keep the KMotionCNC also.
> I got the homing program working and all the "Ref" buttons work just fine.
> Now I'm working on the spindle program.
> So I put in the KFlop plugin the generic "spindleMach3.c" program and was going to look at the output on the console window.
> But every time I click the "Spindle CW F5" button I get information in the console window but all axis jerks and the X axis goes off line and the only way to get it back is to reset the KFlop board.
> This is the output in the console window after that.
>
> (Init Servo)
> (Init Servo)
> Mach3 Notify Message=5, Direction= 0, Spindle Set to 0.000000
> Spindle Speed Set to 0.000000
> Mach3 Notify Message=3, Direction= 1, Spindle Set to 0.000000
> Spindle CCW ON
>
> So I totally don't understand what is going on!
> All the code is to do is print out information I don't get why it is init the servo two times or what is going on.
> Any ideas?
>
> Troncam
>
Group: DynoMotion Message: 7905 From: Tom Kerekes Date: 7/10/2013
Subject: Re: Mach 3 and Spindle Program??
Hi Troncam,

If you send an email to the Group DynoMotion@yahoogroups.com you can just attach the files to the email.  Posting from the Yahoo Site there is no way to attach files.  You would need to upload to the files section.

Regards
TK

Group: DynoMotion Message: 7909 From: Tom Hauff Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program??
TK
Thanks and  here are the files you asked for.
Troncam
  @@attachment@@
Group: DynoMotion Message: 7910 From: troncam Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program??
TK
It looks like I sent the wrong xml file!
I'm working it now to get the correct one.
Also removed the spindle C program from the plugin and the problem goes away.
So there is something in the "spindleMach3.c" program that is doing this.


Another question is there a way to run the KMotion console only?
And have it running all the time?

Troncam
Group: DynoMotion Message: 7914 From: Tom Hauff Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program??
TK
Sorry not doing to good this morning! LOL what a mess i have made of this get the file.
 
Now I have the correct xml files.
I got two one with the "spindleMach3.c" and one without "spindleMach3.c" in the plugin.
Been looking at the plugin window and in the "Threading Box" It is configured as follows.
Sensor Type = 0
Encoder Axis = 0
etc
My X axis is 0 can this be doing something to the X axis in the "spindleMach3.c" program?
I changed the "Encoder Axis" to 5 but that did not help.
Click the "Spindle CW F5" button all axis jerks and the X axis goes off line and the only way to get it back is to reset the KFlop board.
PS "had to fix the quote Marks in my font so post would read correct"
Troncam
  @@attachment@@
Group: DynoMotion Message: 7915 From: Tom Kerekes Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program?? [2 Attachments]
Hi Troncam,

I looked at the XML and the SpindleMach3.c and I don't see anything wrong.  A minor thing is that "Disable Spindle Relays" is set which I believe causes Mach3 to not send Spindle Off messages to the plugin.  But I don't think that would explain the weird messages printed to the Console Screen.

Are you sure you attached the correct SpindleMach3.c file?  It Plugnin Configuration is configured to use the ones from a C:\KFLOP\Mach3 directory.  Please send the other c files from that directory that you are configured to use.

Regards
TK


Group: DynoMotion Message: 7916 From: Tom Hauff Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program?? [2 Attachments]
TK
Attached is the "spindleMach3.c" from the "C:\KFLOP\Mach3" directory.
Thanks for taking time to look at this.
Troncam
  @@attachment@@
Group: DynoMotion Message: 7917 From: Tom Kerekes Date: 7/11/2013
Subject: Re: Mach 3 and Spindle Program?? [1 Attachment]
Troncam,

Yes that is exactly the same as the other file you already sent.  How about the other files that are specified in the Plugin Config?

Also you might re-Flash the KFLOP board using the FLASH New Version button on the Config/Flash screen to remove any programs that anyone might have flashed into KFLOP.

Regards
TK